package com.hundun.hddeal.dao;

import com.hundun.hddeal.entity.Record;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * 记录
 * @author 谢
 */
@Component
public interface RecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Record record);

    Record selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Record record);

    List<Record> selectAll(@Param("userId")String user, @Param("status") Byte status,
                           @Param("startTime") Date startTime, @Param("endTime")Date endTime,
                           @Param("content")String content,@Param("gzhName")String gzhName,
                           @Param("thisMonth")String thisMonth,@Param("lastMonth")String lastMonth);

}